package com.qst.crop;

import com.qst.crop.entity.Address;
import com.qst.crop.entity.Discuss;
import com.qst.crop.entity.User;
import org.junit.jupiter.api.Test;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.web.bind.annotation.RequestBody;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import tk.mybatis.spring.annotation.MapperScan;

import javax.xml.transform.Source;
import java.util.ArrayList;
import java.util.List;


@SpringBootApplication
@MapperScan(basePackages = "com.qst.crop.dao")
@EnableSwagger2
public class RongXiaoTongApplication {
    public static void main(String[] args) {
        SpringApplication.run(RongXiaoTongApplication.class,args);
    }
    @Bean
    public PasswordEncoder passwordEncoder(){
        return new BCryptPasswordEncoder();
    }
    @Test
    public void load(){

    }
}
